import Vue from 'vue'
import VueRouter from 'vue-router'
import Test from '../components/test.vue'
import ShopList from '../components/shopList.vue'
import Parent from '../components/parent/index.vue'
import Shop from '../components/shop/index.vue'
import HelloWorld from '../components/HelloWorld.vue'
import Table from '../components/table.vue'
import Crud from '../components/crud.vue'
Vue.use(VueRouter)

const router =new VueRouter({
    routes:[
        {
            path:'/test',
            name:'test',
            component:Test,
        },
        {
            path:'/shopList',
            name:'shopList',
            component:ShopList,
        },
        {
            path:'/parent',
            name:'parent',
            component:Parent,
        },
        {
            path:'/shop',
            name:'shop',
            component:Shop,
        },
        {
            path:'/helloWorld',
            name:'helloWorld',
            component:HelloWorld,
        },
        {
            path:'/table',
            name:'table',
            component:Table,
        },
        {
            path:'/crud',
            name:'crud',
            component:Crud,
        }
    ]
}) 
export default router